﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;

namespace DiscMaster.Web.Models
{
    [MetadataType(typeof(MatchPlayer_MetaData))]
    public partial class MatchPlayer
    {
        public List<MatchResult> Scores 
        {
            get
            {
                return new DiscMasterRepository().FindAllMatchResultsByPlayer(this.Player).ToList();
            }
        }
    }
    internal class MatchPlayer_MetaData
    {
        [ScaffoldColumn(false)]
        public System.Guid matchid { get; set; }

        [ScaffoldColumn(false)]
        public System.Guid playerid { get; set; }

    }
}
